package com.czy.workflow.core.model;

import lombok.Data;

import javax.persistence.*;

/**
 * 流程节点
 */
@Entity
@Table(name = "flow_node", schema = "work")
@Data
public class FlowNode extends FlowMeta{

    @Column(name = "flow_id", columnDefinition = "varchar(36) comment '流程编号'")
    String flowId;

    @Enumerated(EnumType.STRING)
    @Column(name = "operation_type", columnDefinition = "varchar(20) comment '操作类型'")
    OperationType operationType;

    @Column(name = "executor_obj", columnDefinition = "varchar(255) comment '执行对象'")
    String executorObj;

    @ManyToOne
    @JoinColumn(name = "element_id")
    FlowOrgElement orgElement;
}
